package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户登陆记录表对象 login_info
 * 
 * @author ruoyi
 * @date 2024-06-18
 */
public class LoginInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long liId;

    /** 登陆时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登陆时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date liInsdate;

    /** 用户id */
    @Excel(name = "用户id")
    private Long usreId;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String liIp;

    /** token */
    @Excel(name = "token")
    private String token;

    public void setLiId(Long liId) 
    {
        this.liId = liId;
    }

    public Long getLiId() 
    {
        return liId;
    }

    public void setLiInsdate(Date liInsdate) 
    {
        this.liInsdate = liInsdate;
    }

    public Date getLiInsdate() 
    {
        return liInsdate;
    }

    public void setUsreId(Long usreId) 
    {
        this.usreId = usreId;
    }

    public Long getUsreId() 
    {
        return usreId;
    }

    public void setLiIp(String liIp) 
    {
        this.liIp = liIp;
    }

    public String getLiIp() 
    {
        return liIp;
    }

    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("liId", getLiId())
            .append("liInsdate", getLiInsdate())
            .append("usreId", getUsreId())
            .append("liIp", getLiIp())
            .append("token", getToken())
            .toString();
    }
}
